﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dapper.Orm;

namespace Dapper.Modle
{
    [TableName("Contents")]

    [PrimaryKey("CId", autoIncrement = false)]

    [ExplicitColumns]
    public partial class Content 
    {

        [Column]
        public int CId { get; set; }

        [Column]
        public string Title { get; set; }

        [Column]
        public string Slug { get; set; }

        [Column]
        public DateTime? CreateTime { get; set; }

        [Column]
        public DateTime? ModifyTime { get; set; }

        [Column]
        public string Text { get; set; }

        [Column]
        public int? Order { get; set; }

        [Column]
        public int? UId { get; set; }

        [Column]
        public string Template { get; set; }

        [Column]
        public string Type { get; set; }

        [Column]
        public string Status { get; set; }

        [Column]
        public string Password { get; set; }

        [Column]
        public int? CommentsNum { get; set; }

        [Column]
        public string AllowComment { get; set; }

        [Column]
        public string AllowPing { get; set; }

        [Column]
        public string AllowFeed { get; set; }

        [Column]
        public int? Parent { get; set; }

        public User User { get; set; }
    }
}
